/*
 * @Author: HeAo
 * @Date: 2021-09-27 14:33:26
 * @LastEditTime: 2021-09-27 14:48:21
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2105\3-1-ES6\day03\3-箭头函数this.js
 * 别乱动！
 */
let arrowFun = () => {
  console.log(this);
}

let obj = {
  name: 'zhangsan',
  age: 12,
  gender: 'male',
  // sayName: function() {

  // },
  // sayName () {
  //   console.log(this.name);
  // },
  // sayName: () => {
  //   console.log(this);
  // }
  // sayName () {
  //   return () => {
  //     console.log(this);
  //   }
  // }
  sayName () {
    return arrowFun
  }
}

this.username = 'larry'
this.password = '123321'
obj.sayName()()

module.exports.a = 1
module.exports.b = 2



console.log('全局', this);
console.log('module.exports', module.exports);

